<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>资源库 - 下载中心</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        :root {
            --primary: #2c3e50;
            --secondary: #3498db;
            --accent: #1abc9c;
            --dark: #1a252f;
            --light: #ecf0f1;
            --gray: #95a5a6;
            --success: #2ecc71;
            --warning: #f39c12;
            --danger: #e74c3c;
        }
        
        body {
            background-color: #1a252f;
            color: var(--light);
            line-height: 1.6;
        }
        
        .container {
            width: 90%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }
        
        /* 头部样式 */
        header {
            background: linear-gradient(135deg, var(--primary), var(--dark));
            padding: 20px 0;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
            position: sticky;
            top: 0;
            z-index: 100;
        }
        
        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
        }
        
        .logo {
            display: flex;
            align-items: center;
            gap: 15px;
        }
        
        .logo i {
            font-size: 2.5rem;
            color: var(--accent);
        }
        
        .logo h1 {
            font-size: 2rem;
            font-weight: 700;
            background: linear-gradient(to right, var(--accent), var(--secondary));
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }
        
        .search-bar {
            display: flex;
            width: 100%;
            max-width: 500px;
            margin: 20px 0;
        }
        
        .search-bar input {
            flex: 1;
            padding: 12px 20px;
            border: none;
            border-radius: 30px 0 0 30px;
            font-size: 1rem;
            background: rgba(255, 255, 255, 0.1);
            color: white;
            outline: none;
        }
        
        .search-bar button {
            padding: 12px 20px;
            border: none;
            background: var(--secondary);
            color: white;
            border-radius: 0 30px 30px 0;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .search-bar button:hover {
            background: #2980b9;
        }
        
        /* 导航样式 */
        nav {
            background-color: rgba(26, 37, 47, 0.95);
            padding: 15px 0;
            margin: 10px 0 30px;
            border-radius: 10px;
        }
        
        .nav-links {
            display: flex;
            justify-content: center;
            list-style: none;
            gap: 25px;
            flex-wrap: wrap;
        }
        
        .nav-links a {
            color: var(--light);
            text-decoration: none;
            font-weight: 500;
            padding: 8px 15px;
            border-radius: 30px;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .nav-links a:hover, .nav-links a.active {
            background: var(--secondary);
            color: white;
        }
        
        /* 主要内容区 */
        .main-content {
            display: grid;
            grid-template-columns: 1fr;
            gap: 30px;
        }
        
        @media (min-width: 768px) {
            .main-content {
                grid-template-columns: 3fr 1fr;
            }
        }
        
        /* 资源网格 */
        .resources-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 25px;
            margin-bottom: 40px;
        }
        
        .resource-card {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 15px;
            overflow: hidden;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
            display: flex;
            flex-direction: column;
            height: 100%;
        }
        
        .resource-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 12px 20px rgba(0, 0, 0, 0.3);
            background: rgba(255, 255, 255, 0.08);
        }
        
        .card-header {
            padding: 20px;
            background: rgba(0, 0, 0, 0.2);
            display: flex;
            align-items: center;
            gap: 15px;
        }
        
        .file-icon {
            width: 50px;
            height: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 12px;
            font-size: 1.8rem;
        }
        
        .pdf { background: linear-gradient(135deg, #e74c3c, #c0392b); }
        .doc { background: linear-gradient(135deg, #3498db, #2980b9); }
        .img { background: linear-gradient(135deg, #9b59b6, #8e44ad); }
        .zip { background: linear-gradient(135deg, #f39c12, #d35400); }
        .video { background: linear-gradient(135deg, #e67e22, #d35400); }
        .audio { background: linear-gradient(135deg, #1abc9c, #16a085); }
        .other { background: linear-gradient(135deg, #7f8c8d, #95a5a6); }
        
        .card-header h3 {
            font-size: 1.2rem;
            font-weight: 600;
            flex: 1;
        }
        
        .card-body {
            padding: 20px;
            flex: 1;
        }
        
        .file-info {
            display: flex;
            justify-content: space-between;
            margin-bottom: 15px;
            font-size: 0.9rem;
            color: var(--gray);
        }
        
        .file-desc {
            margin-bottom: 20px;
            font-size: 0.95rem;
            line-height: 1.5;
        }
        
        .card-footer {
            padding: 0 20px 20px;
        }
        
        .download-btn {
            display: block;
            width: 100%;
            padding: 12px;
            background: var(--accent);
            color: white;
            text-align: center;
            text-decoration: none;
            border-radius: 8px;
            font-weight: 600;
            transition: all 0.3s ease;
        }
        
        .download-btn:hover {
            background: #16a085;
            transform: translateY(-2px);
        }
        
        /* 侧边栏样式 */
        .sidebar {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 15px;
            padding: 25px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }
        
        .sidebar h2 {
            font-size: 1.5rem;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 2px solid var(--accent);
        }
        
        .upload-section {
            background: rgba(26, 37, 47, 0.7);
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 30px;
        }
        
        .upload-btn {
            display: block;
            width: 100%;
            padding: 14px;
            background: var(--secondary);
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            margin-top: 15px;
            text-align: center;
            text-decoration: none;
        }
        
        .upload-btn:hover {
            background: #2980b9;
            transform: translateY(-2px);
        }
        
        .stats {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
            margin: 20px 0;
        }
        
        .stat-card {
            background: rgba(0, 0, 0, 0.2);
            border-radius: 10px;
            padding: 15px;
            text-align: center;
        }
        
        .stat-card i {
            font-size: 1.8rem;
            margin-bottom: 10px;
            color: var(--accent);
        }
        
        .stat-card .number {
            font-size: 1.8rem;
            font-weight: 700;
            margin: 5px 0;
            color: var(--secondary);
        }
        
        /* 分类列表 */
        .categories {
            margin-top: 30px;
        }
        
        .category-list {
            list-style: none;
        }
        
        .category-list li {
            padding: 12px 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .category-list li:last-child {
            border-bottom: none;
        }
        
        .category-list a {
            color: var(--light);
            text-decoration: none;
            display: flex;
            justify-content: space-between;
            transition: all 0.3s ease;
        }
        
        .category-list a:hover {
            color: var(--accent);
        }
        
        .category-list a span:last-child {
            background: rgba(255, 255, 255, 0.1);
            padding: 2px 10px;
            border-radius: 20px;
            font-size: 0.85rem;
        }
        
        /* 页脚样式 */
        footer {
            background: var(--dark);
            padding: 40px 0 20px;
            margin-top: 50px;
        }
        
        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 30px;
            margin-bottom: 30px;
        }
        
        .footer-column h3 {
            font-size: 1.3rem;
            margin-bottom: 20px;
            position: relative;
            padding-bottom: 10px;
        }
        
        .footer-column h3::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 50px;
            height: 3px;
            background: var(--accent);
        }
        
        .footer-column ul {
            list-style: none;
        }
        
        .footer-column ul li {
            margin-bottom: 12px;
        }
        
        .footer-column ul li a {
            color: var(--gray);
            text-decoration: none;
            transition: all 0.3s ease;
        }
        
        .footer-column ul li a:hover {
            color: var(--accent);
            padding-left: 5px;
        }
        
        .copyright {
            text-align: center;
            padding-top: 20px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            color: var(--gray);
            font-size: 0.9rem;
        }
        
        /* 响应式调整 */
        @media (max-width: 768px) {
            .header-content {
                flex-direction: column;
                align-items: flex-start;
            }
            
            .logo {
                margin-bottom: 15px;
            }
            
            .search-bar {
                width: 100%;
                margin: 15px 0;
            }
            
            .nav-links {
                justify-content: flex-start;
            }
        }
    </style>
</head>
<body>
    <!-- 头部区域 -->
    <header>
        <div class="container">
            <div class="header-content">
                <div class="logo">
                    <i class="fas fa-cloud-download-alt"></i>
                    <h1>资源库</h1>
                </div>
                
                <div class="search-bar">
                    <input type="text" placeholder="搜索资源...">
                    <button><i class="fas fa-search"></i> 搜索</button>
                </div>
            </div>
        </div>
    </header>
    
    <div class="container">
        <!-- 导航菜单 -->
        <nav>
            <ul class="nav-links">
                <li><a href="#" class="active"><i class="fas fa-home"></i> 首页</a></li>
                <li><a href="#"><i class="fas fa-file-pdf"></i> 文档</a></li>
                <li><a href="#"><i class="fas fa-images"></i> 图片</a></li>
                <li><a href="#"><i class="fas fa-file-video"></i> 视频</a></li>
                <li><a href="#"><i class="fas fa-file-audio"></i> 音频</a></li>
                <li><a href="#"><i class="fas fa-file-archive"></i> 压缩包</a></li>
                <li><a href="#"><i class="fas fa-folder"></i> 其他</a></li>
            </ul>
        </nav>
        
        <!-- 主要内容区 -->
        <div class="main-content">
            <!-- 资源网格 -->
            <div class="resources-container">
                <h2><i class="fas fa-fire"></i> 热门资源</h2>
                <div class="resources-grid">
                    <!-- 资源卡片1 -->
                    <div class="resource-card">
                        <div class="card-header">
                            <div class="file-icon pdf">
                                <i class="fas fa-file-pdf"></i>
                            </div>
                            <h3>JavaScript高级编程指南</h3>
                        </div>
                        <div class="card-body">
                            <div class="file-info">
                                <span><i class="fas fa-hdd"></i> 12.5 MB</span>
                                <span><i class="fas fa-download"></i> 1,245</span>
                            </div>
                            <p class="file-desc">深入讲解JavaScript高级概念和最佳实践，包含大量实用示例代码。</p>
                        </div>
                        <div class="card-footer">
                            <a href="#" class="download-btn"><i class="fas fa-download"></i> 下载资源</a>
                        </div>
                    </div>
                    
                    <!-- 资源卡片2 -->
                    <div class="resource-card">
                        <div class="card-header">
                            <div class="file-icon img">
                                <i class="fas fa-file-image"></i>
                            </div>
                            <h3>高清自然风景图集</h3>
                        </div>
                        <div class="card-body">
                            <div class="file-info">
                                <span><i class="fas fa-hdd"></i> 85.3 MB</span>
                                <span><i class="fas fa-download"></i> 892</span>
                            </div>
                            <p class="file-desc">包含50张4K分辨率自然风景图片，适用于桌面壁纸或设计项目。</p>
                        </div>
                        <div class="card-footer">
                            <a href="#" class="download-btn"><i class="fas fa-download"></i> 下载资源</a>
                        </div>
                    </div>
                    
                    <!-- 资源卡片3 -->
                    <div class="resource-card">
                        <div class="card-header">
                            <div class="file-icon video">
                                <i class="fas fa-file-video"></i>
                            </div>
                            <h3>UI设计入门教程</h3>
                        </div>
                        <div class="card-body">
                            <div class="file-info">
                                <span><i class="fas fa-hdd"></i> 256 MB</span>
                                <span><i class="fas fa-download"></i> 1,532</span>
                            </div>
                            <p class="file-desc">从零开始学习UI设计，包含10小时高清视频教程和素材文件。</p>
                        </div>
                        <div class="card-footer">
                            <a href="#" class="download-btn"><i class="fas fa-download"></i> 下载资源</a>
                        </div>
                    </div>
                    
                    <!-- 资源卡片4 -->
                    <div class="resource-card">
                        <div class="card-header">
                            <div class="file-icon zip">
                                <i class="fas fa-file-archive"></i>
                            </div>
                            <h3>网页模板素材包</h3>
                        </div>
                        <div class="card-body">
                            <div class="file-info">
                                <span><i class="fas fa-hdd"></i> 45.2 MB</span>
                                <span><i class="fas fa-download"></i> 2,104</span>
                            </div>
                            <p class="file-desc">包含10套响应式网页模板、图标集和UI组件，适用于各种项目。</p>
                        </div>
                        <div class="card-footer">
                            <a href="#" class="download-btn"><i class="fas fa-download"></i> 下载资源</a>
                        </div>
                    </div>
                    
                    <!-- 资源卡片5 -->
                    <div class="resource-card">
                        <div class="card-header">
                            <div class="file-icon audio">
                                <i class="fas fa-file-audio"></i>
                            </div>
                            <h3>背景音乐素材库</h3>
                        </div>
                        <div class="card-body">
                            <div class="file-info">
                                <span><i class="fas fa-hdd"></i> 78.9 MB</span>
                                <span><i class="fas fa-download"></i> 965</span>
                            </div>
                            <p class="file-desc">30首无版权背景音乐，适用于视频制作、播客和游戏开发。</p>
                        </div>
                        <div class="card-footer">
                            <a href="#" class="download-btn"><i class="fas fa-download"></i> 下载资源</a>
                        </div>
                    </div>
                    
                    <!-- 资源卡片6 -->
                    <div class="resource-card">
                        <div class="card-header">
                            <div class="file-icon doc">
                                <i class="fas fa-file-word"></i>
                            </div>
                            <h3>项目管理模板</h3>
                        </div>
                        <div class="card-body">
                            <div class="file-info">
                                <span><i class="fas fa-hdd"></i> 8.7 MB</span>
                                <span><i class="fas fa-download"></i> 1,876</span>
                            </div>
                            <p class="file-desc">全套项目管理文档模板，包含甘特图、需求文档、项目计划等。</p>
                        </div>
                        <div class="card-footer">
                            <a href="#" class="download-btn"><i class="fas fa-download"></i> 下载资源</a>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 侧边栏 -->
            <div class="sidebar">
                <div class="upload-section">
                    <h2><i class="fas fa-cloud-upload-alt"></i> 上传资源</h2>
                    <p>分享您的资源，帮助他人学习与成长</p>
                    <a href="#" class="upload-btn"><i class="fas fa-upload"></i> 上传文件</a>
                </div>
                
                <div class="stats">
                    <div class="stat-card">
                        <i class="fas fa-database"></i>
                        <div class="number">1,245</div>
                        <div>资源总数</div>
                    </div>
                    <div class="stat-card">
                        <i class="fas fa-users"></i>
                        <div class="number">12,587</div>
                        <div>今日访问</div>
                    </div>
                    <div class="stat-card">
                        <i class="fas fa-download"></i>
                        <div class="number">84,236</div>
                        <div>总下载量</div>
                    </div>
                    <div class="stat-card">
                        <i class="fas fa-hdd"></i>
                        <div class="number">1.2TB</div>
                        <div>存储空间</div>
                    </div>
                </div>
                
                <div class="categories">
                    <h2><i class="fas fa-folder"></i> 资源分类</h2>
                    <ul class="category-list">
                        <li><a href="#">文档 <span>248</span></a></li>
                        <li><a href="#">图片 <span>376</span></a></li>
                        <li><a href="#">视频 <span>192</span></a></li>
                        <li><a href="#">音频 <span>85</span></a></li>
                        <li><a href="#">压缩包 <span>167</span></a></li>
                        <li><a href="#">软件 <span>94</span></a></li>
                        <li><a href="#">电子书 <span>83</span></a></li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
    
    <!-- 页脚区域 -->
    <footer>
        <div class="container">
            <div class="footer-content">
                <div class="footer-column">
                    <h3>关于我们</h3>
                    <p>资源库致力于为用户提供高质量的学习资源和素材下载服务，帮助用户轻松获取所需资料。</p>
                    <div style="margin-top: 15px;">
                        <a href="#" style="display: inline-block; margin-right: 10px; color: var(--accent); font-size: 1.5rem;"><i class="fab fa-facebook"></i></a>
                        <a href="#" style="display: inline-block; margin-right: 10px; color: var(--accent); font-size: 1.5rem;"><i class="fab fa-twitter"></i></a>
                        <a href="#" style="display: inline-block; margin-right: 10px; color: var(--accent); font-size: 1.5rem;"><i class="fab fa-github"></i></a>
                    </div>
                </div>
                
                <div class="footer-column">
                    <h3>快速链接</h3>
                    <ul>
                        <li><a href="#">首页</a></li>
                        <li><a href="#">最新资源</a></li>
                        <li><a href="#">热门下载</a></li>
                        <li><a href="#">上传资源</a></li>
                        <li><a href="#">帮助中心</a></li>
                    </ul>
                </div>
                
                <div class="footer-column">
                    <h3>资源分类</h3>
                    <ul>
                        <li><a href="#">文档资料</a></li>
                        <li><a href="#">设计素材</a></li>
                        <li><a href="#">视频教程</a></li>
                        <li><a href="#">音乐音效</a></li>
                        <li><a href="#">软件工具</a></li>
                    </ul>
                </div>
                
                <div class="footer-column">
                    <h3>联系我们</h3>
                    <ul>
                        <li><i class="fas fa-envelope"></i> contact@resourcehub.com</li>
                        <li><i class="fas fa-phone"></i> +1 (123) 456-7890</li>
                        <li><i class="fas fa-map-marker-alt"></i> 北京市海淀区科技园区88号</li>
                    </ul>
                </div>
            </div>
            
            <div class="copyright">
                <p>&copy; 2023 资源库 | 设计制作: WebDev Studio</p>
            </div>
        </div>
    </footer>
    
    <script>
        // 简单的交互效果
        document.addEventListener('DOMContentLoaded', function() {
            // 卡片悬停效果增强
            const cards = document.querySelectorAll('.resource-card');
            cards.forEach(card => {
                card.addEventListener('mouseenter', function() {
                    this.style.transform = 'translateY(-10px)';
                    this.style.boxShadow = '0 12px 20px rgba(0, 0, 0, 0.3)';
                });
                
                card.addEventListener('mouseleave', function() {
                    this.style.transform = 'translateY(0)';
                    this.style.boxShadow = '0 5px 15px rgba(0, 0, 0, 0.2)';
                });
            });
            
            // 下载按钮点击效果
            const downloadBtns = document.querySelectorAll('.download-btn');
            downloadBtns.forEach(btn => {
                btn.addEventListener('click', function(e) {
                    e.preventDefault();
                    const resourceName = this.closest('.resource-card').querySelector('h3').textContent;
                    
                    // 模拟下载过程
                    this.innerHTML = '<i class="fas fa-spinner fa-spin"></i> 下载中...';
                    this.style.background = 'var(--success)';
                    
                    setTimeout(() => {
                        this.innerHTML = '<i class="fas fa-check"></i> 下载完成';
                        alert(`资源 "${resourceName}" 下载成功！`);
                        
                        // 恢复按钮状态
                        setTimeout(() => {
                            this.innerHTML = '<i class="fas fa-download"></i> 下载资源';
                            this.style.background = 'var(--accent)';
                        }, 2000);
                    }, 1500);
                });
            });
            
            // 上传按钮效果
            const uploadBtn = document.querySelector('.upload-btn');
            if(uploadBtn) {
                uploadBtn.addEventListener('click', function(e) {
                    e.preventDefault();
                    alert('在实际应用中，这里会打开文件上传对话框');
                });
            }
        });
    </script>
</body>
</html>